package com.jiangdong.craft;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 默认值扫描启动类所在包及其子包
 */
@SpringBootApplication
@EnableTransactionManagement
public class CraftApplication {

    private static Logger logger = LoggerFactory.getLogger(CraftApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(CraftApplication.class, args);
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        logger.info(df.format(new Date()) + ",main class start ....................");
    }

}
